package com.bw.usercenter.adapter

import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentPagerAdapter

class MyAdapterFragemtn(fm: FragmentManager, behavior: Int) : FragmentPagerAdapter(fm) {
    var list: ArrayList<Fragment> = arrayListOf()
    constructor(fm: FragmentManager, behavior: Int,list: ArrayList<Fragment>) : this(fm,behavior) {
        this.list = list
    }
    override fun getCount(): Int {
        return list.size
    }

    override fun destroyItem(container: ViewGroup, position: Int, `object`: Any) {

    }
    override fun getItem(position: Int): Fragment {
        return list.get(position)
    }
}